﻿using System;
using System.Text.RegularExpressions;

namespace TEL.TelPhoneF.InfoList
{
    public enum ContactCallState
    {
        Entity = -1,
        Out = 0,
        Accepted = 1,
        Missing = 2,
        Contact = 3
    }
    public class ContactCall : Contact
    {
        //public string ContactName { get; set; }
        //public string ContactPhone { get; set; }
        public DateTime Date { get; set; }
        public ContactCallState State { get; set; }

        public override bool Check(ContactCallState state, string searchData)
        {
            bool res = true;
            bool searchByContact = true; 


            res = res && (State == state || state == ContactCallState.Entity);
            searchByContact = base. Check(state, searchData);
            return res && searchByContact;
           
        }

    }
}
